<?php
 class MasterPage{
	var $selected = "index";
	function MasterPage($selectedPage){
		if($selectedPage)
			$this->selected = $selectedPage;	
	}
	
	function head(){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>

<head>
  <title>Programacion II</title>
  <meta name="description" content="Sitio de apoyo para la materia de Programacion II de la Universidad NUR" />
  <meta name="keywords" content="Programacion 2, Programacion, Universidad NUR, Java" />
  <meta name="author" content="Jose Carlos Gutierrez" />
  <meta http-equiv="content-type" content="text/html; charset=windows-1252" />
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <link type="image/x-icon" rel="shortcut icon" href="style/favicon.ico">
  <script type="text/javascript" src="script/jquery-1.4.3.min.js"></script>
  <script type="text/javascript">
  	$(document).ready(function(){
		$("#<?php echo $this->selected; ?>").addClass("selected")
	});
  </script>
</head>

<body>
  <div id="main">
    <div id="header">
      <div id="logo">
        <div id="logo_text">
          <!-- class="logo_colour", allows you to change the colour of the text -->
          <h1><a href="index.php">Programaci&oacute;n <span class="logo_colour">II</span></a></h1>
          <h2>Semestre II - 2011. Universidad NUR.</h2>
        </div>
      </div>
      <div id="menubar">
        <ul id="menu">
          <!-- put class="selected" in the li tag for the selected page - to highlight which page you're on -->
          <li id="index"><a href="index.php">Inicio</a></li>
          <li id="info"><a href="info.php">Informacion de la Materia</a></li>
          <li id="temas"><a href="temas.php">Temas</a></li>
          <li id="resources"><a href="resources.php">Libros y Recursos</a></li>
          <li id="practicos"><a href="practicos.php">Practicos</a></li>
          <li id="contact"><a href="contact.php">Contactar</a></li>
        </ul>
      </div>
    </div>
    <div id="content_header"></div>
    <div id="site_content">
      <div id="sidebar_container">
        <div class="sidebar">
          <div class="sidebar_top"></div>
          <div class="sidebar_item">
            <!-- insert your sidebar items here -->
            <h3>Universidad NUR</h3>
            <h4>Programacion II</h4>
            <h5>Semestre II - 2011</h5>
            <p>
            	Docente:<br />
            	Ing. Jose Carlos Gutierrez
            </p>
          </div>
          <div class="sidebar_base"></div>
        </div>
        <div class="sidebar">
          <div class="sidebar_top"></div>
          <div class="sidebar_item">
            <h3>Enlaces de Interes</h3>
            <ul>
              <li><a href="https://groups.google.com/group/2-2011-nur-pro2/">Grupo de Google</a></li>
              <li><a href="http://www.nur.edu" target="_blank">Universidad NUR</a></li>
              <li><a href="https://notas.nur.edu" target="_blank">Consulta de Notas</a></li>
              <li><a href="resources/ProgEstudioProgII.pdf">Programa de Estudio</a></li>
            </ul>
          </div>
          <div class="sidebar_base"></div>
        </div>
      </div>
<?php
	}
	
	function foot(){
	?>
    
    </div>
     <div id="content_footer"></div>
    <div id="footer">
      <p>
      	<a href="index.php">Inicio</a> | 
        <a href="temas.php">Temas</a> | 
        <a href="resources.php">Libros y Recursos</a> | 
        <a href="practicos.html">Practicos</a> | 
        <a href="contact.php">Contactar</a>
      </p>
      <div class="myCopyright">
          <p>
            Copyright &copy; simplestyle_6 | <a href="http://validator.w3.org/check?uri=referer">HTML5</a> |
            <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> | 
            <a href="http://www.html5webtemplates.co.uk">design from HTML5webtemplates.co.uk</a>
          </p>
      </div>
    </div>
    <p>&nbsp;</p>
  </div>
</body>
</html>
<?php
	}
}
?>